﻿using System.Windows;
using System.Windows.Media;
using C1.Silverlight.Pdf;

namespace MyFloridaHouse.libSvOpenDistricts.PDF
{
    public class HouseMapLegendRowWithTextSymbol : HouseMapLegendRow
    {
        private string symbolText;
        private Color symbolTextColor;

        public HouseMapLegendRowWithTextSymbol(C1PdfDocument pdf, Color symbolTextColor, string name, string symbolText)
            : base(pdf, name)
        {
            this.symbolText = symbolText;
            this.symbolTextColor = symbolTextColor;
        }


        internal override void DrawSymbol(Rect rect)
        {
            // draw symbols for column 1 to match words in the second column
            Font textSymbolFont = new Font("Arial", pdfString.fontSize, PdfFontStyle.Regular);
            pdf.DrawString(symbolText, textSymbolFont, symbolTextColor, rect);


        }


    }
}
